package paradigm.paradigmExtend;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) {

        List listRes = test(new ArrayList<PersonSon>());
        System.out.println(listRes.toString());

        List listRes2 = test2(new ArrayList<Person>());
        System.out.println(listRes2.toString());
    }

    public static <T> List<? extends Person> test(List<? extends Person> list){
        return list;
    }

    public static <T> List<? super PersonSon> test2(List<? super PersonSon> list){
        return list;
    }
}
